package com.yjc.drygoods.product.dao;

import com.yjc.drygoods.product.entity.SkuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sku信息
 * 
 * @author yjc
 * @email yjc19979401754@126.com
 * @date 2022-08-19 21:27:48
 */
@Mapper
public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> {

    List<SkuInfoEntity> selectSkuInfosBySpuId(@Param("spuId") Long spuId);

    void updateSkuSaleCount(@Param("skuId") Long skuId, @Param("saleCount") Double saleCount);

    void updateAttentionCount(@Param("skuId") Long skuId,@Param("flag")String flag);
}
